//
//  CommonHeader.h
//  AoJi
//
//  Created by MinwenYi on 15-1-30.
//  Copyright (c) 2015年 xuanheng. All rights reserved.
//

#ifndef AoJi_CommonHeader_h
#define AoJi_CommonHeader_h
#import "NSObject+CommonClass.h"
#import "UIImageView+WebCache.h"
#import "MBProgressHUD.h"
#import "MJRefresh.h"
#define kQuit @"kquit"
#define kSideMenuOpen @"sidemenuopen"
#define kTurnOffTheAnimition @"turnoff"

#define  baseUrl        @"http://cent.dsgrd.com/"
#define viewTop(view)       (view.frame.origin.y)
#define viewBottom(view)    (view.frame.size.height+view.frame.origin.y)
#define viewRight(view)     (view.frame.origin.x+view.frame.size.width)
#define viewLeft(view)     (view.frame.origin.x)
#define viewHeight(view)    (view.frame.size.height)
#define viewWidth(view)     (view.frame.size.width)

#define PicUrl(str)     [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",baseUrl,str]]


//
#define kSideMenuOpened   @"sidemenuopened"
//  
#define kLightContent  [[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleLightContent]//UIStatusBarStyleDefault
#define kBlackContent  [[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleDefault]
#define kCorlor(r,g,b)  [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]

//-------------------commonColor
#define kheadBgcolor [UIColor colorWithRed:246/255.0 green:246/255.0 blue:246/255.0 alpha:1]
#define kRedColor   [self getCorlor:@"e70012"]
#define kcontentBgcolor [UIColor colorWithRed:236/255.0 green:236/255.0 blue:236/255.0 alpha:1]

#define kSemitoumincolor [UIColor colorWithRed:0 /255.0 green:0/255.0 blue:0/255.0 alpha:0.5]
//-------------------commonFont
#define kFirstSegFontNum    [UIFont systemFontOfSize:14]//一级segment字体大小

#endif
